package sk.isomi.operators.flags;

public class Font implements FontConst {
	
	private String name;
	private int size;
	private int flags;
	
		
	public Font(String name, int size, int flags) {
		this.name = name;
		this.size = size;
		this.flags = flags;		
	}

	public void checkFlags() {
		if ((flags & BOLD) == BOLD ) {
			System.out.println("Is BOLD");
		}
		if ((flags & ITALIC) == ITALIC ) {
			System.out.println("Is ITALIC");
		}
		if ((flags & UNDERLINE) == UNDERLINE) {
			System.out.println("Is UNDERLINE");
		}
	}
	
	public String getName() {
		return name;
	}

	public int getSize() {
		return size;
	}

	public int getFlags() {
		return flags;
	}	
}
